<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="../../../static/bootstrap.min.css" rel="stylesheet">
		<link href="../../../static/style-teacher.css" rel="stylesheet">
		<title>计算机网络综合实训</title>
	</head>
	<body>
		<div class="container">
			<div class="col-md-12 column">
				<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">华中科技大学</a>
					</div>
					<div class="collapse navbar-collapse" id="navbar-collapse">
						<ul class="nav navbar-nav">
							{% for class in classes%}
								<li {% if class[0] == aim %} class="active" {% endif %}><a href="/student/{{ class[0] }}/show_homework/">{{ class[1] }}</a></li>
							{% endfor %}
                            <li style="margin-left:50px"><a href="#">{{name}}, 你好</a></li>
						</ul>
					</div>
				</nav>
			</div>
			<div class="container-fluid">
				<div class="row">
					<div class="col-sm-3 col-md-2 sidebar">
						<ul class="nav nav-sidebar">
							<li class="active"><a href="/student/{{aim}}/show_homework">作业详情</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/student/{{aim}}/show_ppt">课件列表</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/student/{{aim}}/show_discussion">讨论区详情</a></li>
							<li><a href="/student/{{aim}}/add_discussion">添加讨论</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/student/{{aim}}/show_notice">公告详情</a></li>
						</ul>
						<ul class="nav nav-sidebar">
							<li><a href="/student/change_password">修改密码</a></li>
							<li><a href="/logout/thr">退出登陆</a></li>
						</ul>
					</div>
					<div class="col-md-offset-4 col-md-6">
						{% for message in get_flashed_messages() %}
							<div  class="flash" style="color:red"> {{ message }} </div>
						{% endfor %}
						<h4>作业主题</h4>
						<p>{{homework[1]}}</p>
						<br>
						<h4>发布时间</h4>
						<p>{{homework[4]}}</p>
						<br>
						<h4>截止时间</h4>
						<p>{{homework[5]}}</p>
						<br>
						<h4>作业内容</h4>
						<p style="white-space:pre-line">{{homework[2]}}</p>
						<br>
						<h4>作业要求</h4>
						<p style="white-space:pre-line">{{homework[3]}}</p>
						{% if dead == 0 %}
							<hr>
							<h3>上传作业</h3>
							<form class="form-horizontal" action="/student/{{aim}}/add_homework/{{homework[0]}}" method="POST" enctype=multipart/form-data>
								<div class="form-group">
									<input type="file" id="work" name="work">
									<p class="help-block">作业需打包为zip格式，大小不得超过10MB</p>
								</div>
								<button type="submit" class="btn btn-primary center-block">提交</button>
							</form>
						{% endif %}
					</div>
				</div>
			</div>
		</div>
		<script src="../../../static/jquery.min.js"></script>
		<script src="../../../static/bootstrap.min.js"></script>
	</body>
</html>
